﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.actions {
    import Classes.*;

    public class ActionPause extends BaseAction {

        protected var m_pauseTime:Number;
        protected var m_currTime:Number;

        public function ActionPause(_arg1:MapResource, _arg2:Number=0){
            super(_arg1);
            this.m_pauseTime = _arg2;
            this.m_currTime = 0;
        }
        override public function update(_arg1:Number):void{
            super.update(_arg1);
            this.m_currTime = (this.m_currTime + _arg1);
            if (this.m_currTime >= this.m_pauseTime){
                m_mapResource.actionQueue.removeState(this);
            };
        }

    }
}//package Classes.actions 
